@import "variable";



.flex-h {
  display: flex;
  flex-direction: row;
}

.flex-v {
  display: flex;
  flex-direction: column;
}

@for $i from 1 through 12 {
  .flex-#{$i} {
    align-items: stretch;
    flex-positive: #{$i};
    flex-grow: #{$i};
    flex: #{$i};
    flex-shrink: 0;
  }
}

@for $i from 1 through 6 {
  // 左边距离
  .margin-left-#{$i} {
    margin-left: #{$--margin-base * $i} !important;
  }
  // 右边距离
  .margin-right-#{$i} {
    margin-right: #{$--margin-base * $i} !important;
  }
  // 顶部距离
  .margin-top-#{$i} {
    margin-top: #{$--margin-base * $i} !important;
  }
  // 底部距离
  .margin-bottom-#{$i} {
    margin-bottom: #{$--margin-base * $i} !important;
  }
  .margin-#{$i} {
    margin: #{$--margin-base * $i} !important;
  }
  // 左边距离
  .padding-left-#{$i} {
    padding-left: #{$--margin-base * $i} !important;
  }
  // 右边距离
  .padding-right-#{$i} {
    padding-right: #{$--margin-base * $i} !important;
  }
  // 顶部距离
  .padding-top-#{$i} {
    padding-top: #{$--margin-base * $i} !important;
  }
  // 底部距离
  .padding-bottom-#{$i} {
    padding-bottom: #{$--margin-base * $i} !important;
  }
  .padding-#{$i} {
    padding: #{$--margin-base * $i} !important;
  }
}

.border {
  border: 0 solid $--table-border-color;
}

.border-top {
  @extend .border;
  border-top-width: 1px;
}

.border-bottom {
  @extend .border;
  border-bottom-width: 1px;
}

.border-left {
  @extend .border;
  border-left-width: 1px;
}

.border-right {
  @extend .border;
  border-right-width: 1px;
}

.border-left-top {
  @extend .border;
  @extend .border-left;
  @extend .border-top;
}

.border-right-top {
  @extend .border;
  @extend .border-right;
  @extend .border-top;
}

.border-all {
  @extend .border;
  border-width: 1px;
}

.border-no-left {
  border-left-width: 0 !important;
}

.border-no-top {
  border-top-width: 0 !important;
}

.border-no-right {
  border-right-width: 0 !important;
}

.border-no-bottom {
  border-bottom-width: 0 !important;
}

.border-no-all {
  border-width: 0 !important;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.full-height {
  height: 100%;
  box-sizing: border-box;
}

.inline {
  display: inline-block;
}

.background-no {
  background-color: transparent;
}

/* 小样式 */

.symbol {
  display: inline-block;

  &.success:before {
    content: "\2714"; /*✔*/
  }

  &.failure:before {
    content: "\2716"; /*✖*/
  }
}

/*鼠标样式*/

.href {
  cursor: pointer;
  color: #0788e4;
}

.hover-href:hover {
  cursor: pointer;
  color: #0788e4;
  font-weight: bold;
}

.font-bold {
  font-weight: bold;
}
